#include "DestroyEntityMessage.h"
#include "../GameObjects/Entity.h"
#include "MessageID.h"

DestroyEntityMessage::DestroyEntityMessage(Entity* owner)
: Message(MessageID::DESTROY_ENTITY_MESSAGE)
{
	m_pSender = owner;
	m_pSender->AddRef(); 
}

DestroyEntityMessage::~DestroyEntityMessage()
{
	m_pSender->Release(); 
	m_pSender = nullptr;
}
